package redis_kits

import (
	"github.com/go-redis/redis"
	"time"
)

type RedisClient interface {
	Set(string,interface{},time.Duration) error
	SetNX(string,interface{},time.Duration) error
	Delete(...string) error
	Incr(string) (int64,error)
	RPush(string,interface{}) error
	LPush(string,interface{}) error
	Pull(string)([]string,error)
	Pop(string)([]string,error)
	Subscribe(string) *redis.PubSub
	Publish(string,string) error
	Get(string) string
	Ping() error
	Exists (string) (bool,error)
}
